times=range(3,31,3)
for number in times:
    print(number)